import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import appleStore from './stores/appleStore';
import { Provider } from 'mobx-react';
import { autorun } from 'mobx';

import './styles/appleBasket.scss'
import './styles/appleItem.scss'

const store = new appleStore();

/** acturun测试*/
autorun(() => {
  if (store.isPicking) {
    console.log('又在采摘新苹果了');
  }
});

ReactDOM.render(
  <Provider appleBasket={store}>
    <App />
  </Provider>,
  document.getElementById('root')
);
